buffer.test.js ➔ describe(ꞌbufferꞌ)   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
cc 1
c 1
b 1
f 1
nc 1
dl 0
loc 6
rs 9.4285
nop 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A buffer.test.js ➔ ... ➔ it(ꞌshould reverseꞌ) 0 4 1
1
var assert = require('assert');
2
3
describe('buffer', function() {
4
    it("should reverse", function() {
5
        var b = new Buffer('010203', 'hex');
0 ignored issues
show
Bug introduced by
The variable Buffer seems to be never declared. If this is a global, consider adding a /** global: Buffer */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
6
        assert.equal(b.reverse().toString('hex'), '030201');
7
    });
8
});
9